//
//  SFCommonCmd.m
//  demoApp
//
//  Created by MBP on 11/1/16.
//  Copyright (c) 2016 MBP. All rights reserved.
//

#import "SFCommonCmd.h"

@implementation SFCommonCmd


// curl 127.0.0.1:8080/api/units/C026384001AH0D31Y
-(NSString *)GenerateCommandwithUnit
{
    return [_commonStr stringByAppendingFormat:@"%@",_barCodeValue];
}
// curl 127.0.0.1:8080/api/units/C026384001AH0D31Y/sequences
-(NSString *)GenerateCommandwithSeq
{
    return [_commonStr stringByAppendingFormat:@"%@%@",_barCodeValue,@"/sequences"];
}

// curl 127.0.0.1:8080/api/units/C026384001AH0D31Y/actions?unitSequenceId=661
-(NSString *)GenerateCommandwithAction:(NSString *)seqId
{
    return [_commonStr stringByAppendingFormat:@"%@%@%@",_barCodeValue,@"/actions?unitSequenceId=",seqId];
}
//curl 127.0.0.1:8080/api/units/C026384001AH0D31Y/actions/80786/results
-(NSString *)GenerateCommandwithResult:(NSString *)actionId
{
    return [_commonStr stringByAppendingFormat:@"%@%@%@%@",_barCodeValue,@"/actions/",actionId,@"/results"];
}



@end
